package com.caine.web.service.impl;

import com.caine.web.mapper.TestMapper;
import com.caine.web.service.ITestService02;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author CaineZhu
 * @since 2020-11-20
 */
@Transactional
@Service
public class TestServiceImpl02 implements ITestService02 {

    @Resource
    private TestMapper testMapper;

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public void updateById02(long uid) {
        testMapper.updateById(uid);
    }
}
